package com.example.securitytest.dao;

import com.example.securitytest.entity.User;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

//@RepositoryRestResource(collectionResourceRel = "user",path = "user")
public interface UserDao extends PagingAndSortingRepository<User,Integer> {
    List<User> findByUsername(@Param("username") String username);

    List<User> findByPassword(@Param("password") String password);
}
